package com.realjinge.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.realjinge.dao.WeChatUserDao;
import com.realjinge.entity.WeChatUser;

/**
 * 
 * @author realjinge
 * 
 */
@Service
public class WeChatUserService {
	@Resource
	private WeChatUserDao weChatUserDao;

	public WeChatUser getWeChatUser(String openID) {
		return weChatUserDao.selectWeChatUserByOpenID(openID);
	}

	public void setWeChatUser(WeChatUser weChatUser) {
		weChatUserDao.insertWeChatUser(weChatUser);
	}

}
